#ifndef IN_THREAD_H
#define IN_THREAD_H

#include <boost/thread/thread.hpp>
#include <boost/asio.hpp>
#include <boost/bind.hpp>
#include <boost/date_time/posix_time/posix_time.hpp>

#include <iostream>

class InThread
{
public:
    static InThread & getInstance () ;
    void operator()(boost::asio::io_service& io) ;
    void initPolling (boost::asio::io_service& io) ;
    void rxMsg () ;

private:
    InThread () ;  

private:    
    boost::asio::deadline_timer * pTimer ;
};

#endif
